﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class HomeStayTypesDataModel
    {
        HomestayWebDBEntities ent = new HomestayWebDBEntities();
        public List<HomeStayType> GetHomeStayType()
        {
            List<HomeStayType> list = new List<HomeStayType>();
            var query = from th in ent.HomeStayTypes
                        select th;
            if (query != null)
            {
                list = query.ToList();
            }
            return list;
        }
        public List<Store_HomeStayType_GetNameHomeStayType_Result> GetNameHomeStayTypeOfHouse(int houseID)
        {
            HomestayWebDBEntities en = new HomestayWebDBEntities();
            return en.Store_HomeStayType_GetNameHomeStayType(houseID).ToList();
        }
    }
}
